<?php namespace Summer\Shop\Models;

use Model;

/**
 * Model
 */
class FavoriteModel extends Model
{
    use \Winter\Storm\Database\Traits\Validation;
    

    /**
     * @var string The database table used by the model.
     */
    public $table = 'summer_shop_favorites';

    /**
     * @var array Validation rules
     */
    public $rules = [
    ];

    public $belongsTo = [
        'product' => ['Summer\Shop\Models\ProductModel','key'=>'product_id','otherKey'=>'id']
    ];

}
